def main():
    try:
        with open('text.jpg', 'rb') as fs:
            data = fs.read()
            print(type(data))
    except FileNotFoundError as e:
        print(e)
    except IOError as io:
        print(io)
        
